package com.vision.sales.cl.data;

import com.google.gwt.core.client.GWT;
import com.google.gwt.editor.client.Editor.Path;
import com.sencha.gxt.core.client.ValueProvider;
import com.sencha.gxt.data.shared.LabelProvider;
import com.sencha.gxt.data.shared.ModelKeyProvider;
import com.sencha.gxt.data.shared.PropertyAccess;
import com.vision.sales.cm.db.data.Salesman;
import com.vision.sales.cm.db.data.Salesman.SalesmanStatus;

public interface SalesmanProperties extends PropertyAccess<Salesman> {
	
	public static final SalesmanProperties INSTANCE = GWT.create(SalesmanProperties.class);
	
	@Path("id")
	ModelKeyProvider<Salesman> key();
	
	@Path("name")
	LabelProvider<Salesman> nameLabel();

	ValueProvider<Salesman, Long> id();
	ValueProvider<Salesman, String> code();
	ValueProvider<Salesman, String> name();
	ValueProvider<Salesman, String> address();
	ValueProvider<Salesman, String> phone();
	ValueProvider<Salesman, SalesmanStatus> status();
	ValueProvider<Salesman, String> comment();
	
}